<?php

namespace Util;

class LogUtil
{
    const DEBUG = 1;
    public static function debug(mixed $content): void
    {
        if (!self::DEBUG){
            return;
        }
        if (is_array($content)) {
            $content = json_encode($content, JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES);
        }
        echo $content . PHP_EOL;
    }

}